d68a757c232e99aacaec49664aebb0ca26b09b9e,source/com/intellij/compiler/impl/javaCompiler/ModuleChunk.java,ModuleChunk,getSortedOrderEntries,#Module#,182

Before Change


    //return ModuleRootManager.getInstance(module).getOrderEntries();
    // TODO: this is a patch for SCR 36800, After J2EE Compiler copying mechanizm is fixed,
    // TODO: remove all the code below and uncomment the line above
    final OrderEntry[] orderEntries = ModuleRootManager.getInstance(module).getOrderEntries();
    final List<OrderEntry> result = new ArrayList<OrderEntry>();
    final List<OrderEntry> moduleOrderEntries = new ArrayList<OrderEntry>();
    int insertIndex = 0;
    for (int idx = 0; idx < orderEntries.length; idx++) {
      OrderEntry orderEntry = orderEntries[idx];
      if (orderEntry instanceof ModuleOrderEntry) {
        moduleOrderEntries.add(orderEntry);
      }
      else {
        result.add(orderEntry);
        if (orderEntry instanceof ModuleSourceOrderEntry) {
          insertIndex = result.size() - 1;
        }
      }

After Change


  }

  private static OrderEntry[] getSortedOrderEntries(Module module) {
    return ModuleRootManager.getInstance(module).getOrderEntries();
    // TODO: this is a patch for SCR 36800, After J2EE Compiler copying mechanizm is fixed,
    // TODO: remove all the code below and uncomment the line above
    /*